import request from '@/utils/request'

export function add(data) {
    return request({
        url: '/api/${t.varName}/add',
        method: 'post',
        data
    })
}

export function del(data) {
    return request({
        url: '/api/${t.varName}/delete',
        method: 'post',
        data
    })
}

export function deleteByIds(data) {
    return request({
        url: '/api/${t.varName}/deleteByIds',
        method: 'post',
        data
    })
}

export function update(data) {
    return request({
        url: '/api/${t.varName}/update',
        method: 'post',
        data
    })
}

export function getById(data) {
    return request({
        url: '/api/${t.varName}/getById',
        method: 'post',
        data
    })
}

export function getList(data) {
    return request({
        url: '/api/${t.varName}/getList',
        method: 'post',
        data
    })
}
